import type { loginPasswordData } from '@/types/login'
import request from '@/utils/request'

// 账号登录接口
export const loginByPasswordAPI = (data: loginPasswordData) => {
  return request.post<null,string>('/driver/login/account', data)
}

// 获取验证码
export const getCodeAPI = (key?: string) => {
  return request.get('/driver/eegirrst / captcha' + key)
}
